//
//  WechatManager.h
//  research
//
//  Created by 章鱼 on 17/3/31.
//  Copyright © 2017年 simon. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^loginApiCompletionBlock)(BOOL isSuccess, NSString *token, NSString *openID, NSString *expirationDate);
typedef void (^shareApiCompletionBlock)(BOOL isSuccess);
typedef void (^UserInfoApiCompletionBlock)(BOOL isSuccess, NSDictionary *dict);

@interface WechatManager : NSObject

{
    loginApiCompletionBlock    _loginCompletionBlock;
    shareApiCompletionBlock    _shareCompletionBlock;
    UserInfoApiCompletionBlock _userInfoCompletionBlock;
}


+ (id)defaultManager;

/**
 *  检测是否安装微信客户端
 */
- (BOOL)isWeiXinAppInstalled;
/**
 *  微博登陆多了一步   根据code 拿 token 和 openid
 */
- (void)getTokenAndOpenId:(NSString *)code;


@end
